!function() {
	
	// 获得基础JIPIN对象
	var JIPIN = window.__NS__JIPIN;
	if(!JIPIN) { return; }
	var $ = JIPIN.$;
	
	if(inValidPage()) {
		JIPIN.getSitePicDesc = function(targetPic) {
			var desc = targetPic.attr('title'),
				parentItem = targetPic.closest('.msgBox');
			if(parentItem.length) {
				var msgCntClone = parentItem.children('.msgCnt').clone();
				msgCntClone.children('strong').remove();
				desc = msgCntClone.text();
			} 
			return desc || '';
		}
	}
	
	JIPIN.getSourceURL = function(targetPic) {
		var url = document.location.href,
			timeNode = targetPic.closest('.msgBox').find('a.time');
		if(timeNode.length) {
			url = timeNode.get(0).href;
		}
		return url;
	}
	
	function inValidPage() {
		return true;
	}
	
}();
